package com.zjj.day3.employeeTest2;

/**
 * @author zhoujunjie
 * @desc Employee
 * @date 2025/4/21
 */

abstract class Employee {
    protected String name;
    protected String id;
    protected double pay;

    public Employee(String name, String id, double pay) {
        this.name = name;
        this.id = id;
        this.pay = pay;
    }

    public String getName() {
        return name;
    }

    public String getId() {
        return id;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }

    public abstract void addSalary();
}